package com.lizhangjun.nim.push;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class Publisher {

    @Autowired
    private RedisPublish redisPublish;

    @Autowired
    private RocketPublish rocketPublish;

    public void run(String data){
        redisPublish.push(data);
        rocketPublish.push(data);
    }
}
